import request from '@/utils/request'

//查询商品列表
export const getGoodsList = (type,brand,page,pageSize) =>{
    return request.get('/goods/list',{
        params:
            { type: type,
              brand:brand,
              page:page,
              pageSize:pageSize
            }
    })
}
// 查询商品总数
export const getListNum = (type,brand) =>{
    return request.get('/goods/lisSum',{
        params:
            { type: type,
              brand:brand,
            }
    })
}

// 查询商品总数
export const getGoodsDetail = (id) =>{
    return request.get('/goods/detail',{params: { id: id}})
}
